<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<title><?php echo ($name); ?></title>
<script src="__APP__/statics/jquery-1.9.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<style>
 body{font-family:"微软雅黑";font-size:12px;color:#666666;background-color:#F9F9F6}
 *{margin: 0;} 
 a{text-decoration:none}
 img{border:0px}
.cat{background-color:#F9F9F6;margin-left:10px;z-index:0;}
.cat_list:hover{background-color:#fff;}
.title{background:url("__APP__/statics/tbg.gif");font-weight:bold}

#save{text-align:center;border:0;width:100%;height:40px;background-color:#fff;position:fixed;left:0px;bottom:0px;z-index:999;border:1px solid #DFDFDF;background-color:#DFDFDF;padding:5px;height:20px}
</style>


   	<table border="0" width="100%" style="border-collapse: collapse; border: 1px ridge #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" height="52">
		<tr>
			<td width="57">
			<p align="right">分类：</td>
			<td><select size="1" name="cat">
			<option value="">全部分类</option>
<?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><option value="<?php echo ($cat["cat_id"]); ?>"><?php echo ($cat["fullname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
			</select></td>
			<td>
			<p align="right">上架：</td>
			<td><select size="1" name="ispost">
			<option value="">全部</option>
			<option value="0">已上架</option>
			<option value="1">未上架</option>
			</select></td>
			<td>
			<p align="right">商品编号：</td>
			<td><input type="text" name="bn" size="20"></td>
			<td>
			<p align="right">商品名称：</td>
			<td><input type="text" name="goods_name" size="20"></td>
		</tr>
	</table>
<script src="__APP__/statics/jquery-1.9.1.min.js" type="text/javascript"></script>
<script>
$(function(){
     $("#list").attr("src","__URL__/goods_list");
	 $("[name=cat]").blur(function(){
	    var cat=$("[name=cat]").val();
		var post=$("[name=ispost]").val();
		var url="__URL__/goods_list/?cat="+cat+"&post="+post;
		$("#list").attr("src",url);
	})
	$("[name=ispost]").blur(function(){
	    var cat=$("[name=cat]").val();
		var post=$("[name=ispost]").val();
		var url="__URL__/goods_list/?cat="+cat+"&post="+post;
		$("#list").attr("src",url);
	})
	$("[name=bn]").blur(function(){
		var id=$("[name=bn]").val();
		var url="__URL__/goods_list/?id="+id;
		$("#list").attr("src",url);
	})
	$("[name=goods_name]").blur(function(){
		var id=encodeURI($("[name=goods_name]").val());
		var url="__URL__/goods_list/?name="+id;
		$("#list").attr("src",url);
	})
})
</script>

<iframe id="list"  width="100%" height="470px" src="__URL__/goods_list"></iframe>